package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface DishService {


    //分页查询
    Page findByPage(Integer pageNum, Integer pageSize, String name);

    void save(Dish dish);

    Dish findById(Long id);

    void update(Dish dish);

    void deleteByIds(List<Long> ids);


    //void stop(List<Long> ids);

    //void begin(List<Long> ids);

    List<Dish> findList(Long categoryId,String name);

    void stop(List<Long> ids, Integer status);

}
